﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
@using SAD.Models
@{  ViewBag.Title = "Users List";
    string role;

    //get role
    if (Session["role"] == null)
    {
        role = "user";
    }
    else
    {
        role = Session["role"].ToString();
    }
 }
<head>
    <!--
    Created by Artisteer v3.1.0.46558
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Home</title>



    <link rel="stylesheet" href="../../style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->

    <script type="text/javascript" src="../../Scripts/jquery.js"></script>
    <script type="text/javascript" src="../../Scripts/script.js"></script>
    <style type="text/css">
        .art-post .layout-item-0 {
            margin-right: 10px;
        }

        .art-post .layout-item-1 {
            padding-top: 0px;
            padding-right: 10px;
            padding-left: 0px;
        }

        .art-post .layout-item-2 {
            padding-right: 10px;
            padding-left: 10px;
        }

        .art-post .layout-item-3 {
            padding-right: 20px;
            padding-left: 0px;
        }

        .art-post .layout-item-4 {
            border-top-style: dashed;
            border-right-style: dashed;
            border-bottom-style: dashed;
            border-left-style: dashed;
            border-top-width: 1px;
            border-right-width: 1px;
            border-bottom-width: 1px;
            border-left-width: 1px;
            border-top-color: #53A25A;
            border-right-color: #53A25A;
            border-bottom-color: #53A25A;
            border-left-color: #53A25A;
            color: #452603;
            background: repeat #C7F0D7;
            padding: 15px;
        }

        .ie7 .art-post .art-layout-cell {
            border: none !important;
            padding: 0 !important;
        }

        .ie6 .art-post .art-layout-cell {
            border: none !important;
            padding: 0 !important;
        }
    </style>

</head>
<body>
    <div id="art-page-background-glare-wrapper">
        <div id="art-page-background-glare"></div>
    </div>
    <div id="art-main">
        <div class="cleared reset-box"></div>
        <div class="art-header">
            <div class="art-header-position">
                <div class="art-header-wrapper">
                    <div class="cleared reset-box"></div>
                    <div class="art-header-inner">
                        <div class="art-headerobject"></div>
                        <div class="art-logo">
                            <h1 class="art-logo-name"><a href="./index.html">Venice Restaurant</a></h1>
                            <h2 class="art-logo-text">Fine Fining At Its Best</h2>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="cleared reset-box"></div>
        <div class="art-box art-sheet">
            <div class="art-box-body art-sheet-body">
                <div class="art-layout-wrapper">
                    <div class="art-content-layout">
                        <div class="art-content-layout-row">
                            <div class="art-layout-cell art-sidebar1">
                                <div class="art-box art-block">
                                    <div class="art-box-body art-block-body">
                                        <div class="art-box art-blockcontent">
                                            <div class="art-box-body art-blockcontent-body" style="background-color:black; opacity:0.7" >
                                                @if (Session["User"] == null)
                                                {
                                                    <a style="color:yellow" align="center" href="@Url.Action("Login", "User")">  LogIn</a>
                                                    <a style="font-size: x-large; font-weight: bold">|</a>
                                                    <a style="color:yellow" align="center" href="@Url.Action("Register", "User")">  Register</a>
                                                }
                                                @if (Session["User"] != null)
                                                {
                                                    <ul>
                                                        <li>
                                                            <h4 style="color:aquamarine">Welcome @Session["User"].ToString()!</h4>
                                                                                                                  
                                                        </li>
                                                        <li>
                                                            <a style="color:yellow" align="center" href="@Url.Action("LogOut", "User")">  LogOut</a>
                                                        </li>

                                                    </ul>
                                                }
                                            </div>
                                        </div>
                                        <div class="cleared"></div>
                                    </div>
                                </div>
                                <div class="art-box art-vmenublock">
                                    <div class="art-box-body art-vmenublock-body">
                                        <div class="art-box art-vmenublockcontent">
                                            <div class="art-box-body art-vmenublockcontent-body">
                                                <ul class="art-vmenu">
                                                    @if (role == "admin")
                                                    {
                                                        <li>
                                                             <a href="@Url.Action("Index", "User")" style="font-size:large">Manage Users</a>
                                                        </li>
                                                    }
                                                    
                                                    <li>
                                                        <a href="@Url.Action("Index", "Food")" style="font-size:large">Home</a>
                                                    </li>
                                                    
                                                </ul>

                                                <div class="cleared"></div>
                                            </div>
                                        </div>
                                        <div class="cleared"></div>
                                    </div>
                                </div>


                                <div class="cleared"></div>
                            </div>
                            <div class="art-layout-cell art-content">
                                <div class="art-box art-post">
                                    <div class="art-box-body art-post-body">
                                        @RenderBody()

                                        <div class="cleared"></div>
                                    </div>
                                </div>

                                <div class="cleared"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div>

                <div class="cleared"></div>
            </div>
        </div>
        <div class="art-footer">
            <div class="art-footer-body">
                <div class="art-footer-center">
                    <div class="art-footer-wrapper">
                        <div class="art-footer-text">
                            <p>Copyright © 2011, Venice Restaurant. All Rights Reserved.</p>
                            <div class="cleared"></div>
                            <p class="art-page-footer"><a href="http://www.artisteer.com/?p=website_templates" target="_blank">Website Template</a> created with Artisteer.</p>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
    </div>

</body>
</html>
